package dmas.lab.models;

import java.util.ArrayList;
import java.util.List;

public class Group {

	private List<Contact> members;
	private String groupName;

	public Group(String groupName) {
		this.groupName = groupName;
		members = new ArrayList<Contact>();
	}

	public boolean addMember(Contact contact) {
		return members.add(contact);
	}

	public boolean deleteMember(Contact contact) {
		return members.remove(contact);
	}

	public String getGroupName() {
		return groupName;
	}

	public void setGroupName(String name) {
		this.groupName = name;
	}

}
